package com.ruoyi.common.core.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author：liyouxin
 * @date：2023/8/15 12:52
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RestaurantOrder extends BaseEntity {
    @ApiModelProperty(name = "id", value = "订单id")
    private Long id;
    @ApiModelProperty(name = "type", value = "订单类型")
    private String type;
    @ApiModelProperty(name = "customerId", value = "用户id")
    private Long customerId;
    @ApiModelProperty(name = "amount", value = "金额")
    private BigDecimal amount;
    @ApiModelProperty(name = "orderTime", value = "订单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;
    @ApiModelProperty(name = "address", value = "地址")
    private String address;
    @ApiModelProperty(name = "phone", value = "联系方式")
    private String phone;
    private String customerName;
    private String extra;
    @ApiModelProperty(name = "status", value = "订单状态")
    private String status;
    @ApiModelProperty(name = "comment", value = "评论")
    private String comment;

    private BigDecimal lastMoney;//上次余额
    private BigDecimal nowMoney;//本次余额

    private String area;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

    private String appSource;
    private Long customerInfoId;

    private Integer peopleCount;
    private String orderNum;
    private String qulityStatus;
    private Long qulityId;
}
